<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

	<ui:composition template="/index.xhtml">
		<ui:define name="centro">
        	<h:form>
        	<div align="center">
				<h:messages />
				<p:panel header="Login" footer="">
				<h:panelGrid columns="2">
					<h:outputText value="Username: " />
					<h:inputText value="#{authenticator.username}" />
					<h:outputText value="Password: " />
					<h:inputText value="#{authenticator.password}" />
				</h:panelGrid>				

				<h:commandButton value="Logar!" action="#{authenticator.login}" />
				</p:panel>
			</div>
			</h:form>
		</ui:define>		
	
		
	</ui:composition> 
		
</html>